package cn.yitun.chat.yitunservercommonlib.converter.dto2po.contact;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactHarassSettingDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactHarassSettingInfo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户聊天内容转换
 */
@Mapper(componentModel = "spring")
public interface ContactHarassSettingDto2PoConverter {

    ContactHarassSettingDto2PoConverter INSTANCE = Mappers.getMapper(ContactHarassSettingDto2PoConverter.class);

    ContactHarassSettingDto do2dto(ContactHarassSettingInfo info);

    List<ContactHarassSettingDto> do2dto(List<ContactHarassSettingInfo> doList);

    @InheritInverseConfiguration
    ContactHarassSettingInfo dto2do(ContactHarassSettingDto dto);
    @InheritInverseConfiguration
    List<ContactHarassSettingInfo> dto2do(List<ContactHarassSettingDto> dtoList);

}
